# -*- coding: utf-8 -*-
# created on 2017/3/28

from mathsolver.functions.base import *


class QiuBiaoMianJi(BaseFunction):
    def solver(self, *args):
        value = args[0].biaomianji()
        self.output.append(BasePoly(value))
        self.steps.append(["表面积为%s" % new_latex(value), ""])
        return self


class QiuNeiJieLengZhu(BaseFunction):
    def solver(self, *args):
        lengzhu, qiu = args
        eq = BaseEq([2 * qiu.r, lengzhu.duijiaoxian()])
        self.steps.append(["由题意得：%s" % eq.printing(), ""])
        self.output.append(eq)
        return self


if __name__ == '__main__':
    pass
